﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Dissemination.MVC.Models.Program>>" %>
<%@ Import Namespace="Dissemination.MVC.Helpers" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
<asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> · Programmes management
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
	Programmes management
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Programmes Management</h1>

        <ul class="elements-list">
            <li class="first">
                <div class="cell350 flota">Programme Name</div>
                <div class="cell150 flota">&nbsp;</div>
                <div class="cell200 flota_der"><asp:Literal runat="server" Text="<%$ Resources:Literals, ActionsLiteral%>" /></div>
                <div class="cell110 flota_der">Default</div>
            </li>

    <% foreach (var item in Model) { %>
    
            <li>
                <div class="cell350 flota lista_link"><%= Html.Truncate(item.ProgramName, 100)%></div>
                <div class="cell150 flota">&nbsp;</div> 
                
                <div class="enlaces cell200 flota_der">
                	<%= Html.ActionLink("ENTER", "Details", new { id=item.ProgramID }) %>
                    <%= Html.ActionLink("Edit details", "Edit", new { id=item.ProgramID }) %>
                </div> 
                
                <div class="cell110 flota_der">
                <% if (item.ProgramIsDefault) { %>
                    <img src="../../images/defecto.png" alt="Default Program" title="Default Program" width="24" height="23" />
                <% } %>
                </div>
            </li>
    
    <% } %>

    </ul>
    <p class="enlaces">
        <%= Html.ActionLink("Create new program", "Create") %>
    </p>

</asp:Content>

